import request from "@/libs/request";

export function getSystemDateTime() {
  return request({
    url: "/admin/common/getSysDateTime",
    method: "post",
  });
}

export function upload(data) {
  return request({
    url: "/admin/sysAttachment/uploadTemp",
    method: "post",
    data,
  });
}

export function receiveError(data) {
  return request({
    url: "/admin/common/receiveError",
    method: "post",
    data,
    header: {
      "Content-Type": "application/x-www-form-urlencoded",
    },
  });
}

export function sendCode(data) {
  return request({
    url: "/admin/sms/sendCode",
    method: "post",
    data,
  });
}

export function getDkDays() {
  return request({
    url: "/admin/api/dkDays",
    method: "get",
  });
}

export function dk() {
  return request({
    url: "/admin/api/dk",
    method: "post",
  });
}

export function getRankList(type, areaType) {
  return request({
    url: "/admin/api/rank/" + type + "/" + areaType,
    method: "get",
  });
}
